Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions: Enable Go Race detector and code coverage #1601

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

onyb
Copy link
Collaborator

@onyb onyb commented Jul 8, 2020

This modifies the goclean.sh script to run tests with the race detector enabled. It also enables code coverage, and uploads the results to coveralls.io.

Running tests with -race and -cover flags was disabled in 6487ba1 and 6788df7 respectively, due to some limits on time/goroutines being hit on Travis CI. Since we have migrated to GitHub Actions, and don't have those same limitations, it is desirable to enable them back.

I have also simplified the way we run code coverage in the goclean.sh file, by launching it directly with go test .... I'm using -covermode atomic flag, which is the recommended setting for running with the race detector.

Here's the coverage report on my fork: https://coveralls.io/builds/31944135

@Rjected Rjected added the build label Jul 17, 2020
This modifies the goclean.sh script to run tests with the
race detector enabled. It also enables code coverage, and
uploads the results to coveralls.io.

Running tests with -race and -cover flags was disabled in
6487ba1 and 6788df7 respectively, due to some limits on
time/goroutines being hit on Travis CI. Since we have
migrated to GitHub Actions, it is desirable to bring them
back.
Copy link
Member

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@jcvernaleo jcvernaleo merged commit 2547246 into btcsuite:master Sep 8, 2020
@onyb onyb deleted the extreme-tests branch September 8, 2020 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants